<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-tempAgvTask-edit" th:object="${tempAgvTask}">
            <input id="taskid" name="taskid" th:field="*{taskid}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">工单编号：</label>
				<div class="col-sm-8">
					<input id="orderCode" name="orderCode" th:field="*{orderCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">起点地标：</label>
				<div class="col-sm-8">
					<input id="startNo" name="startNo" th:field="*{startNo}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工装编号：</label>
				<div class="col-sm-8">
					<input id="gzNo" name="gzNo" th:field="*{gzNo}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">计划号：</label>
				<div class="col-sm-8">
					<input id="planNo" name="planNo" th:field="*{planNo}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">终点地标：</label>
				<div class="col-sm-8">
					<input id="endNo" name="endNo" th:field="*{endNo}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">到达起点时间：</label>
				<div class="col-sm-8">
					<input id="rStarttime" name="rStarttime" th:field="*{rStarttime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">到达终点时间：</label>
				<div class="col-sm-8">
					<input id="rEndtime" name="rEndtime" th:field="*{rEndtime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">起点执行状态：</label>
				<div class="col-sm-8">
					<input id="startState" name="startState" th:field="*{startState}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">终点执行状态：</label>
				<div class="col-sm-8">
					<input id="endState" name="endState" th:field="*{endState}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">小车编号：</label>
				<div class="col-sm-8">
					<input id="agvCode" name="agvCode" th:field="*{agvCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">任务创建时间：</label>
				<div class="col-sm-8">
					<input id="createdate" name="createdate" th:field="*{createdate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">任务优先级（1工单急停 2车急停 3工单暂停 4车暂停 5自动充电 6工单恢复 7车恢复 8转运）：</label>
				<div class="col-sm-8">
					<input id="priority" name="priority" th:field="*{priority}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">任务状态（0未完成 1已完成 2暂停 3失效）：</label>
				<div class="col-sm-8">
					<input id="finish" name="finish" th:field="*{finish}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">任务结束时间：</label>
				<div class="col-sm-8">
					<input id="overtime" name="overtime" th:field="*{overtime}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/tempAgvTask";
		$("#form-tempAgvTask-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-tempAgvTask-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
